package org.hjj.design.u95.idempotence;

import java.util.UUID;

/**
 * this class is used to generate Idempotence Id
 *
 * @author:何嘉俊
 * @date:2021/6/2
 */
public class IdempotenceIdGenerator {

    /**
     * use uuid to generate Idempotence Id
     * @return
     */
    public String generateId() {
        return UUID.randomUUID().toString();
    }
}
